package com.lipeng.bean;

import org.springframework.web.multipart.MultipartFile;

public class User {
    private Integer uid;

    private String uname;

    private String upsw;

    private String usex;

    private String utel;

    private String upic;

    private String uintro;

    private String uadress;

    private Integer ustate;

    private MultipartFile file;

    public User(){
    }

    public User(String uname, String upsw) {
        this.uname = uname;
        this.upsw = upsw;
    }

    public User(Integer uid, String uname, String upsw, String usex, String utel, String upic, String uintro, String uadress, Integer ustate, MultipartFile file) {
        this.uid = uid;
        this.uname = uname;
        this.upsw = upsw;
        this.usex = usex;
        this.utel = utel;
        this.upic = upic;
        this.uintro = uintro;
        this.uadress = uadress;
        this.ustate = ustate;
        this.file = file;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname == null ? null : uname.trim();
    }

    public String getUpsw() {
        return upsw;
    }

    public void setUpsw(String upsw) {
        this.upsw = upsw == null ? null : upsw.trim();
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex == null ? null : usex.trim();
    }

    public String getUtel() {
        return utel;
    }

    public void setUtel(String utel) {
        this.utel = utel == null ? null : utel.trim();
    }

    public String getUpic() {
        return upic;
    }

    public void setUpic(String upic) {
        this.upic = upic == null ? null : upic.trim();
    }

    public String getUintro() {
        return uintro;
    }

    public void setUintro(String uintro) {
        this.uintro = uintro == null ? null : uintro.trim();
    }

    public String getUadress() {
        return uadress;
    }

    public void setUadress(String uadress) {
        this.uadress = uadress == null ? null : uadress.trim();
    }

    public Integer getUstate() {
        return ustate;
    }

    public void setUstate(Integer ustate) {
        this.ustate = ustate;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", upsw='" + upsw + '\'' +
                ", usex='" + usex + '\'' +
                ", utel='" + utel + '\'' +
                ", upic='" + upic + '\'' +
                ", uintro='" + uintro + '\'' +
                ", uadress='" + uadress + '\'' +
                ", ustate=" + ustate +
                '}';
    }


}